﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using Model.Object;
namespace Model.DataContext
{
    public class DataContext:DbContext
    {
        public DataContext()
            : base("DefaultConnection")
        {
            //Database.SetInitializer<DataContext>(new CreateDatabaseIfNotExists<DataContext>());
            Database.SetInitializer<DataContext>(null);
        }
        public DbSet<Banner> Banners { get; set; }
        public DbSet<LoaiSanPham> LoaiSanPhams { get; set; }
        public DbSet<SanPham> SanPhams { get; set; }
        public DbSet<NguoiDung> NguoiDungs { get; set; }
        public DbSet<HoaDon> HoaDons { get; set; }
        public DbSet<ChiTietHoaDon> ChiTietHoaDons { get; set; }
        public DbSet<LoaiHinhAnh> LoaiHinhAnhs { get; set; }
        public DbSet<HinhAnh> HinhAnhs { get; set; }
        public DbSet<DanhGia> DanhGias { get; set; }
        public DbSet<TinTuc> TinTucs { get; set; }
        public DbSet<WebConfig> WebConfigs { get; set; }
        public DbSet<Nhom> Nhoms { get; set; }
    }
}
